import {createStore,applyMiddleware} from "redux"
import logger from "redux-logger"
import thunk from "redux-thunk"

interface Action{
    type:string
}
interface Initstates{
     const:number;
}

const reducer=(state:Initstates={ const:0},action:Action)=>{
           switch(action.type){
                case "ADD":
                    return {
                        ...state
                    }
                default :{
                    return {
                        ...state
                     }
                }
                 
           }
}


export default createStore(reducer,applyMiddleware(logger,thunk))